<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>显示信息</title>
    <style>
        h1{ color:red}
    </style>
</head>
<body>
<pre>
<?php
print_r($_GET);
//$name=$_GET["name"];
//$age=$_GET["age"];
['xm'=>$name, 'age'=>$age] = $_GET; //数组解构
?>
</pre>
<h1>显示提交的数据</h1>
<p>姓名：<?= $name ?></p>
<p>年龄：<?= $age ?></p>
</body>
</html>